.class public Lcom/instagram/android/support/camera/e;
.super Lcom/instagram/android/support/camera/ab;
.source "CropFragment.java"


# static fields
.field private static final d:Landroid/graphics/Bitmap$CompressFormat;


# instance fields
.field private Z:Landroid/content/ContentResolver;

.field a:Z

.field private aa:Lcom/instagram/android/support/camera/z;

.field private ab:Lcom/instagram/ui/a/d;

.field private ac:Landroid/graphics/Bitmap;

.field private ad:Lcom/instagram/android/support/camera/a/c;

.field private ae:Lcom/instagram/android/support/camera/o;

.field private af:Ljava/lang/String;

.field private ag:Lcom/instagram/android/support/camera/m;

.field b:Lcom/instagram/android/support/camera/p;

.field c:Ljava/lang/Runnable;

.field private e:Landroid/net/Uri;

.field private final f:Landroid/os/Handler;

.field private g:I

.field private h:I

.field private i:Lcom/instagram/android/support/camera/CropImageView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 64
    sget-object v0, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    sput-object v0, Lcom/instagram/android/support/camera/e;->d:Landroid/graphics/Bitmap$CompressFormat;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/instagram/android/support/camera/ab;-><init>()V

    .line 72
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->f:Landroid/os/Handler;

    .line 473
    new-instance v0, Lcom/instagram/android/support/camera/l;

    invoke-direct {v0, p0}, Lcom/instagram/android/support/camera/l;-><init>(Lcom/instagram/android/support/camera/e;)V

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->c:Ljava/lang/Runnable;

    .line 546
    return-void
.end method

.method private X()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    .line 263
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->isFinishing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 275
    :goto_0
    return-void

    .line 267
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    new-instance v1, Lcom/instagram/android/support/camera/ag;

    iget-object v2, p0, Lcom/instagram/android/support/camera/e;->ac:Landroid/graphics/Bitmap;

    iget-object v3, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v3}, Lcom/instagram/android/support/camera/o;->a()I

    move-result v3

    invoke-direct {v1, v2, v3}, Lcom/instagram/android/support/camera/ag;-><init>(Landroid/graphics/Bitmap;I)V

    invoke-virtual {v0, v1, v4}, Lcom/instagram/android/support/camera/CropImageView;->a(Lcom/instagram/android/support/camera/ag;Z)V

    .line 270
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/CropImageView;->c()F

    move-result v0

    const/high16 v1, 0x3f80

    cmpl-float v0, v0, v1

    if-nez v0, :cond_1

    .line 271
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    invoke-virtual {v0, v4, v4}, Lcom/instagram/android/support/camera/CropImageView;->a(ZZ)V

    .line 274
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->c:Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    goto :goto_0
.end method

.method private Y()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 281
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->b:Lcom/instagram/android/support/camera/p;

    if-nez v0, :cond_1

    .line 318
    :cond_0
    :goto_0
    return-void

    .line 285
    :cond_1
    iget-boolean v0, p0, Lcom/instagram/android/support/camera/e;->a:Z

    if-nez v0, :cond_0

    .line 288
    iput-boolean v7, p0, Lcom/instagram/android/support/camera/e;->a:Z

    .line 290
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ac:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    .line 291
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ac:Landroid/graphics/Bitmap;

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    .line 292
    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v2

    .line 294
    const-string v3, "CropFragment"

    const-string v4, "Large thumb size: %dx%d"

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v6

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v7

    invoke-static {v4, v5}, Lcom/facebook/c/h/b;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v3, v0}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 297
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->b:Lcom/instagram/android/support/camera/p;

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/p;->b()Landroid/graphics/Rect;

    move-result-object v0

    .line 299
    invoke-static {v0}, Lcom/instagram/android/x/ac;->a(Landroid/graphics/Rect;)V

    .line 301
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    iget-object v1, v1, Lcom/instagram/android/support/camera/CropImageView;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 308
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    invoke-interface {v1}, Lcom/instagram/android/support/camera/a/c;->g()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v3, "EXTRA_REQUEST_CROP_RECT"

    invoke-virtual {v1, v3, v6}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 310
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    invoke-interface {v1}, Lcom/instagram/android/support/camera/a/c;->e()I

    move-result v1

    iget-object v3, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    invoke-interface {v3}, Lcom/instagram/android/support/camera/a/c;->f()I

    move-result v3

    invoke-static {v1, v3}, Ljava/lang/Math;->min(II)I

    move-result v1

    .line 311
    int-to-float v1, v1

    int-to-float v2, v2

    div-float/2addr v1, v2

    .line 312
    invoke-static {v0, v1}, Lcom/instagram/android/x/ac;->a(Landroid/graphics/Rect;F)V

    .line 313
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->a(Landroid/graphics/Rect;)V

    goto :goto_0

    .line 315
    :cond_2
    invoke-direct {p0, v0, v2}, Lcom/instagram/android/support/camera/e;->a(Landroid/graphics/Rect;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 316
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->a(Landroid/graphics/Bitmap;)V

    goto :goto_0
.end method

.method private a(Landroid/graphics/Rect;I)Landroid/graphics/Bitmap;
    .locals 10
    .parameter
    .parameter

    .prologue
    const/high16 v9, 0x4000

    const/4 v5, 0x1

    .line 350
    const-string v0, "CropFragment"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Image is "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    invoke-interface {v2}, Lcom/instagram/android/support/camera/a/c;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " using Java to write new JPEG"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 352
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Runtime;->maxMemory()J

    move-result-wide v0

    const-wide/16 v2, 0x4

    div-long/2addr v0, v2

    long-to-int v0, v0

    int-to-double v0, v0

    const-wide v2, 0x3fd7ae147ae147aeL

    mul-double/2addr v0, v2

    double-to-int v0, v0

    .line 353
    const-string v1, "CropFragment"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Max number of pixels: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 355
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    const/4 v2, -0x1

    invoke-interface {v1, v2, v0, v5, v5}, Lcom/instagram/android/support/camera/a/c;->a(IIZZ)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 362
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    .line 363
    int-to-float v1, v1

    int-to-float v2, p2

    div-float/2addr v1, v2

    .line 364
    invoke-static {p1, v1}, Lcom/instagram/android/x/ac;->a(Landroid/graphics/Rect;F)V

    .line 365
    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result v1

    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    .line 366
    iget v2, p0, Lcom/instagram/android/support/camera/e;->g:I

    invoke-static {v2, v1}, Ljava/lang/Math;->min(II)I

    move-result v2

    .line 367
    const-string v3, "CropFragment"

    const-string v4, "Final dimension: %d"

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v5, v6

    invoke-static {v4, v5}, Lcom/facebook/c/h/b;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 369
    sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v2, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v3

    .line 373
    new-instance v4, Landroid/graphics/Canvas;

    invoke-direct {v4, v3}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 375
    new-instance v5, Landroid/graphics/Matrix;

    invoke-direct {v5}, Landroid/graphics/Matrix;-><init>()V

    .line 377
    invoke-virtual {v5}, Landroid/graphics/Matrix;->reset()V

    .line 379
    iget v6, p1, Landroid/graphics/Rect;->left:I

    int-to-float v6, v6

    .line 380
    iget v7, p1, Landroid/graphics/Rect;->top:I

    int-to-float v7, v7

    .line 381
    neg-float v6, v6

    neg-float v7, v7

    invoke-virtual {v5, v6, v7}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    .line 383
    iget-object v6, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v6}, Lcom/instagram/android/support/camera/o;->a()I

    move-result v6

    if-eqz v6, :cond_0

    .line 384
    iget-object v6, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v6}, Lcom/instagram/android/support/camera/o;->a()I

    move-result v6

    int-to-float v6, v6

    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result v7

    int-to-float v7, v7

    div-float/2addr v7, v9

    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v8

    int-to-float v8, v8

    div-float/2addr v8, v9

    invoke-virtual {v5, v6, v7, v8}, Landroid/graphics/Matrix;->postRotate(FFF)Z

    .line 389
    :cond_0
    int-to-float v2, v2

    int-to-float v1, v1

    div-float v1, v2, v1

    .line 390
    invoke-virtual {v5, v1, v1}, Landroid/graphics/Matrix;->postScale(FF)Z

    .line 392
    const/4 v1, 0x0

    invoke-virtual {v4, v0, v5, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V

    .line 394
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 395
    return-object v3
.end method

.method static synthetic a(Lcom/instagram/android/support/camera/e;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-object p1, p0, Lcom/instagram/android/support/camera/e;->ac:Landroid/graphics/Bitmap;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/support/camera/e;Lcom/instagram/android/support/camera/a/c;)Lcom/instagram/android/support/camera/a/c;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-object p1, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/support/camera/e;)Lcom/instagram/android/support/camera/m;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ag:Lcom/instagram/android/support/camera/m;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/support/camera/e;Lcom/instagram/android/support/camera/o;)Lcom/instagram/android/support/camera/o;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-object p1, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    return-object p1
.end method

.method private a()V
    .locals 3

    .prologue
    .line 242
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    if-eqz v0, :cond_0

    .line 244
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->dismiss()V

    .line 245
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 251
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ac:Landroid/graphics/Bitmap;

    if-nez v0, :cond_2

    .line 252
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "Unable to download file"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 253
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ag:Lcom/instagram/android/support/camera/m;

    if-eqz v0, :cond_1

    .line 254
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ag:Lcom/instagram/android/support/camera/m;

    invoke-interface {v0}, Lcom/instagram/android/support/camera/m;->h()V

    .line 260
    :cond_1
    :goto_0
    return-void

    .line 259
    :cond_2
    invoke-direct {p0}, Lcom/instagram/android/support/camera/e;->X()V

    goto :goto_0

    .line 246
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method private a(Landroid/graphics/Bitmap;)V
    .locals 4
    .parameter

    .prologue
    .line 321
    sget v0, Lcom/facebook/ba;->processing:I

    .line 322
    const/4 v1, 0x0

    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->l()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/support/camera/i;

    invoke-direct {v2, p0, p1}, Lcom/instagram/android/support/camera/i;-><init>(Lcom/instagram/android/support/camera/e;Landroid/graphics/Bitmap;)V

    iget-object v3, p0, Lcom/instagram/android/support/camera/e;->f:Landroid/os/Handler;

    invoke-static {p0, v1, v0, v2, v3}, Lcom/instagram/android/support/camera/ai;->a(Lcom/instagram/android/support/camera/ab;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Landroid/os/Handler;)V

    .line 330
    return-void
.end method

.method private a(Landroid/graphics/Bitmap;Landroid/os/Bundle;)V
    .locals 5
    .parameter
    .parameter

    .prologue
    .line 407
    const/4 v1, 0x0

    .line 409
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->Z:Landroid/content/ContentResolver;

    iget-object v2, p0, Lcom/instagram/android/support/camera/e;->e:Landroid/net/Uri;

    invoke-virtual {v0, v2}, Landroid/content/ContentResolver;->openOutputStream(Landroid/net/Uri;)Ljava/io/OutputStream;

    move-result-object v1

    .line 410
    if-eqz v1, :cond_0

    .line 411
    sget-object v0, Lcom/instagram/android/support/camera/e;->d:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v2, 0x5f

    invoke-virtual {p1, v0, v2, v1}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 418
    :cond_0
    invoke-static {v1}, Lcom/instagram/android/support/camera/ai;->a(Ljava/io/Closeable;)V

    .line 421
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->f:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/support/camera/j;

    invoke-direct {v1, p0, p1, p2}, Lcom/instagram/android/support/camera/j;-><init>(Lcom/instagram/android/support/camera/e;Landroid/graphics/Bitmap;Landroid/os/Bundle;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 430
    return-void

    .line 413
    :catch_0
    move-exception v0

    .line 415
    :try_start_1
    const-string v2, "CropFragment"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Cannot open file: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/instagram/android/support/camera/e;->e:Landroid/net/Uri;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 416
    invoke-direct {p0, p1}, Lcom/instagram/android/support/camera/e;->c(Landroid/graphics/Bitmap;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 418
    invoke-static {v1}, Lcom/instagram/android/support/camera/ai;->a(Ljava/io/Closeable;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    invoke-static {v1}, Lcom/instagram/android/support/camera/ai;->a(Ljava/io/Closeable;)V

    throw v0
.end method

.method private a(Landroid/graphics/Rect;)V
    .locals 3
    .parameter

    .prologue
    .line 333
    const-string v0, "CropFragment"

    const-string v1, "Image is JPEG, using native region decoding to load into GL"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 334
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 335
    const-string v1, "EXTRA_CROP_RECT"

    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 336
    const-string v1, "originalWidth"

    iget-object v2, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    invoke-interface {v2}, Lcom/instagram/android/support/camera/a/c;->e()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 337
    const-string v1, "originalHeight"

    iget-object v2, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    invoke-interface {v2}, Lcom/instagram/android/support/camera/a/c;->f()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 338
    const-string v1, "cameraRotation"

    iget-object v2, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v2}, Lcom/instagram/android/support/camera/o;->a()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 340
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->o(Landroid/os/Bundle;)V

    .line 341
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->n(Landroid/os/Bundle;)V

    .line 342
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->c(Landroid/os/Bundle;)V

    .line 344
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ag:Lcom/instagram/android/support/camera/m;

    if-eqz v1, :cond_0

    .line 345
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ag:Lcom/instagram/android/support/camera/m;

    iget-object v2, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    invoke-interface {v2}, Lcom/instagram/android/support/camera/a/c;->a()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2, v0}, Lcom/instagram/android/support/camera/m;->a(Ljava/lang/String;Landroid/os/Bundle;)V

    .line 347
    :cond_0
    return-void
.end method

.method private b(Landroid/graphics/Bitmap;)V
    .locals 1
    .parameter

    .prologue
    .line 399
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 400
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->o(Landroid/os/Bundle;)V

    .line 401
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->n(Landroid/os/Bundle;)V

    .line 402
    invoke-direct {p0, v0}, Lcom/instagram/android/support/camera/e;->c(Landroid/os/Bundle;)V

    .line 403
    invoke-direct {p0, p1, v0}, Lcom/instagram/android/support/camera/e;->a(Landroid/graphics/Bitmap;Landroid/os/Bundle;)V

    .line 404
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/support/camera/e;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/instagram/android/support/camera/e;->Y()V

    return-void
.end method

.method static synthetic b(Lcom/instagram/android/support/camera/e;Landroid/graphics/Bitmap;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/instagram/android/support/camera/e;->b(Landroid/graphics/Bitmap;)V

    return-void
.end method

.method private c(Landroid/graphics/Bitmap;)V
    .locals 2
    .parameter

    .prologue
    .line 433
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->f:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/support/camera/k;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/support/camera/k;-><init>(Lcom/instagram/android/support/camera/e;Landroid/graphics/Bitmap;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 440
    return-void
.end method

.method private c(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    .line 452
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/o;->b()Ljava/lang/Double;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/o;->c()Ljava/lang/Double;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 455
    const-string v0, "EXTRA_LATITUDE"

    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v1}, Lcom/instagram/android/support/camera/o;->b()Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v1

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Bundle;->putDouble(Ljava/lang/String;D)V

    .line 456
    const-string v0, "EXTRA_LONGITUDE"

    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    invoke-virtual {v1}, Lcom/instagram/android/support/camera/o;->c()Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v1

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Bundle;->putDouble(Ljava/lang/String;D)V

    .line 458
    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/support/camera/e;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/instagram/android/support/camera/e;->a()V

    return-void
.end method

.method static synthetic c(Lcom/instagram/android/support/camera/e;Landroid/graphics/Bitmap;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/instagram/android/support/camera/e;->d(Landroid/graphics/Bitmap;)V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/support/camera/e;)Landroid/net/Uri;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->e:Landroid/net/Uri;

    return-object v0
.end method

.method private d(Landroid/graphics/Bitmap;)V
    .locals 1
    .parameter

    .prologue
    .line 443
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    if-eqz v0, :cond_0

    .line 444
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/CropImageView;->b()V

    .line 446
    :cond_0
    if-eqz p1, :cond_1

    .line 447
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V

    .line 449
    :cond_1
    return-void
.end method

.method static synthetic e(Lcom/instagram/android/support/camera/e;)Lcom/instagram/android/support/camera/CropImageView;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/android/support/camera/e;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ac:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method static synthetic g(Lcom/instagram/android/support/camera/e;)Lcom/instagram/android/support/camera/a/c;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ad:Lcom/instagram/android/support/camera/a/c;

    return-object v0
.end method

.method static synthetic h(Lcom/instagram/android/support/camera/e;)I
    .locals 1
    .parameter

    .prologue
    .line 60
    iget v0, p0, Lcom/instagram/android/support/camera/e;->h:I

    return v0
.end method

.method static synthetic i(Lcom/instagram/android/support/camera/e;)Lcom/instagram/android/support/camera/o;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ae:Lcom/instagram/android/support/camera/o;

    return-object v0
.end method

.method private n(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 461
    const-string v0, "pendingMediaKey"

    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->af:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 462
    return-void
.end method

.method private o(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    .line 465
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->i()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 466
    const-string v0, "directShare"

    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "directShare"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 471
    :cond_0
    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 124
    sget v0, Lcom/facebook/ax;->fragment_crop:I

    invoke-virtual {p1, v0, p2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 126
    sget v0, Lcom/facebook/aw;->image:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/support/camera/CropImageView;

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    .line 127
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    invoke-virtual {v0, p0}, Lcom/instagram/android/support/camera/CropImageView;->a(Lcom/instagram/android/support/camera/e;)V

    .line 128
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-static {v0, v2, v3}, Landroid/support/v4/view/ai;->a(Landroid/view/View;ILandroid/graphics/Paint;)V

    .line 130
    sget v0, Lcom/facebook/aw;->button_back:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/support/camera/f;

    invoke-direct {v2, p0}, Lcom/instagram/android/support/camera/f;-><init>(Lcom/instagram/android/support/camera/e;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 139
    sget v0, Lcom/facebook/aw;->save:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 140
    new-instance v2, Lcom/instagram/android/support/camera/g;

    invoke-direct {v2, p0}, Lcom/instagram/android/support/camera/g;-><init>(Lcom/instagram/android/support/camera/e;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 146
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "EXTRA_SHOW_DONE_BUTTON"

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 147
    sget v2, Lcom/facebook/av;->action_bar_glyph_done:I

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 148
    sget v2, Lcom/facebook/av;->action_bar_dark_right_green_button:I

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 151
    :cond_0
    return-object v1
.end method

.method public a(Landroid/content/Context;)V
    .locals 4
    .parameter

    .prologue
    .line 106
    invoke-super {p0, p1}, Lcom/instagram/android/support/camera/ab;->a(Landroid/content/Context;)V

    .line 108
    :try_start_0
    move-object v0, p1

    check-cast v0, Lcom/instagram/android/support/camera/m;

    move-object v1, v0

    iput-object v1, p0, Lcom/instagram/android/support/camera/e;->ag:Lcom/instagram/android/support/camera/m;
    :try_end_0
    .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0

    .line 112
    return-void

    .line 109
    :catch_0
    move-exception v1

    .line 110
    new-instance v1, Ljava/lang/ClassCastException;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " must implement CropFragmentListener"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V

    throw v1
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 5
    .parameter

    .prologue
    .line 169
    invoke-super {p0, p1}, Lcom/instagram/android/support/camera/ab;->a(Landroid/os/Bundle;)V

    .line 170
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->Z:Landroid/content/ContentResolver;

    .line 173
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 175
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->i()Landroid/os/Bundle;

    move-result-object v2

    .line 178
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "EXTRA_IMAGE_URI"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/net/Uri;

    .line 180
    const-string v1, "output"

    invoke-virtual {v2, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    check-cast v1, Landroid/net/Uri;

    iput-object v1, p0, Lcom/instagram/android/support/camera/e;->e:Landroid/net/Uri;

    .line 181
    const-string v1, "largestDimension"

    invoke-virtual {v2, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/instagram/android/support/camera/e;->g:I

    .line 182
    const-string v1, "smallestDimension"

    invoke-virtual {v2, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/instagram/android/support/camera/e;->h:I

    .line 184
    new-instance v1, Lcom/instagram/android/support/camera/z;

    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->getContext()Landroid/content/Context;

    move-result-object v3

    new-instance v4, Lcom/instagram/android/support/camera/h;

    invoke-direct {v4, p0}, Lcom/instagram/android/support/camera/h;-><init>(Lcom/instagram/android/support/camera/e;)V

    invoke-direct {v1, v3, v4}, Lcom/instagram/android/support/camera/z;-><init>(Landroid/content/Context;Lcom/instagram/android/support/camera/aa;)V

    iput-object v1, p0, Lcom/instagram/android/support/camera/e;->aa:Lcom/instagram/android/support/camera/z;

    .line 198
    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->aa:Lcom/instagram/android/support/camera/z;

    const/4 v3, 0x1

    new-array v3, v3, [Landroid/net/Uri;

    const/4 v4, 0x0

    aput-object v0, v3, v4

    invoke-virtual {v1, v3}, Lcom/instagram/android/support/camera/z;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 200
    const-string v0, "pendingMediaKey"

    invoke-virtual {v2, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->af:Ljava/lang/String;

    .line 202
    if-eqz p1, :cond_0

    .line 203
    const-string v0, "pendingMediaKey"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->af:Ljava/lang/String;

    .line 206
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->af:Ljava/lang/String;

    if-nez v0, :cond_1

    .line 209
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/pendingmedia/model/c;->a(Ljava/lang/String;)Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    .line 210
    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/instagram/android/service/PendingMediaService;->b(Landroid/content/Context;Lcom/instagram/pendingmedia/model/c;)V

    .line 211
    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->af:Ljava/lang/String;

    .line 213
    :cond_1
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 156
    invoke-super {p0, p1, p2}, Lcom/instagram/android/support/camera/ab;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 158
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->aa:Lcom/instagram/android/support/camera/z;

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/z;->getStatus()Landroid/os/AsyncTask$Status;

    move-result-object v0

    sget-object v1, Landroid/os/AsyncTask$Status;->FINISHED:Landroid/os/AsyncTask$Status;

    if-ne v0, v1, :cond_0

    .line 159
    invoke-direct {p0}, Lcom/instagram/android/support/camera/e;->a()V

    .line 165
    :goto_0
    return-void

    .line 161
    :cond_0
    new-instance v0, Lcom/instagram/ui/a/d;

    invoke-virtual {p0}, Lcom/instagram/android/support/camera/e;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/d;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    .line 162
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    sget v1, Lcom/facebook/ba;->loading:I

    invoke-virtual {p0, v1}, Lcom/instagram/android/support/camera/e;->b(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/d;->a(Ljava/lang/String;)V

    .line 163
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->show()V

    goto :goto_0
.end method

.method public e(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 216
    invoke-super {p0, p1}, Lcom/instagram/android/support/camera/ab;->e(Landroid/os/Bundle;)V

    .line 220
    const-string v0, "pendingMediaKey"

    iget-object v1, p0, Lcom/instagram/android/support/camera/e;->af:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 221
    return-void
.end method

.method public h_()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 225
    invoke-super {p0}, Lcom/instagram/android/support/camera/ab;->h_()V

    .line 229
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/support/camera/e;->a:Z

    .line 231
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    invoke-virtual {v0, v1}, Lcom/instagram/android/support/camera/CropImageView;->a(Lcom/instagram/android/support/camera/e;)V

    .line 232
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/CropImageView;->a()V

    .line 233
    iput-object v1, p0, Lcom/instagram/android/support/camera/e;->i:Lcom/instagram/android/support/camera/CropImageView;

    .line 235
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    if-eqz v0, :cond_0

    .line 236
    iget-object v0, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->dismiss()V

    .line 237
    iput-object v1, p0, Lcom/instagram/android/support/camera/e;->ab:Lcom/instagram/ui/a/d;

    .line 239
    :cond_0
    return-void
.end method

.method public l_()V
    .locals 1

    .prologue
    .line 116
    invoke-super {p0}, Lcom/instagram/android/support/camera/ab;->l_()V

    .line 117
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/support/camera/e;->ag:Lcom/instagram/android/support/camera/m;

    .line 118
    return-void
.end method
